﻿using QG.FrontDesk.Model;
using System.Collections.Generic;

namespace QG.FrontDesk.DAL.IRepository
{
    public interface IPositionSubscRepository
    {
        /// <summary>
        /// 职位订阅——获取职位名称
        /// </summary>
        /// <returns></returns>
        List<Classifyinfo> GetClassify();
        List<PostName> GetPostName();


        /// <summary>
        /// 职位订阅——新增一条职位订阅记录
        /// </summary>
        /// <param name="positionSubscribe"></param>
        /// <returns></returns>
        bool AddPositionSubscribe(PositionSubscribe positionSubscribe);

        /// <summary>
        /// 新增职位
        /// </summary>
        /// <param name="positionInfo"></param>
        /// <param name="postName"></param>
        /// <returns></returns>
        int AddPosition(PositionInfo positionInfo, PostName postName);
        /// <summary>
        /// 得到对应的职位信息
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        PositionInfo GetPositionInfo(int Id, int UserId);
         
        /// <summary>
        /// 收藏职位——新增一条收藏职位表记录
        /// </summary>
        /// <param name="collectPost">收藏职位表</param>
        /// <returns></returns>
        bool AddCollection(CollectPost collectPost);

        /// <summary>
        /// 收藏职位——取消收藏
        /// </summary>
        /// <param name="collectPost"></param>
        /// <returns></returns>
        bool DelCollection(CollectPost collectPost);

        /// <summary>
        /// 收藏职位——展示收藏职位信息
        /// </summary>
        /// <param name="cpId"></param>
        /// <returns></returns>
        List<CollectPost> GetCollectPost(int cpId);
    }
}
